class TabModel {
  String? name;
  List<WishlisModel>? items;

  TabModel({this.name, this.items});

  factory TabModel.fromJson(Map<String, dynamic> json) {
    return TabModel(
        name: json['name'] as String?,
        items: (json['items'] as List<dynamic>?)
            ?.map((e) => WishlisModel.fromJson(e))
            .toList());
  }
}

class WishlisModel {
  num? id;
  String? title;
  String? url;

  WishlisModel({this.id, this.title, this.url});

  factory WishlisModel.fromJson(Map<String, dynamic> json) => WishlisModel(
      id: json['id'] as num?,
      title: json['title'] as String?,
      url: json['url'] as String?);
}
